<template>
  <span style="color:red" @click="callback">{{ name }}</span>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
@Component({
  name: 'Demo'
})
export default class Demo extends Vue {
  @Prop() private name

  private callback () {
    this.$emit('callback')
  }
}
</script>
